﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using GSdk.Net.Lglcd;
using System.Windows;
using System.Windows.Markup;
using System.Xaml;
using GSdk.Shared.Windows.Properties;

namespace GSdk.Shared.Windows
{
    [ContentProperty("Content")]
    public class ContentControl : Control
    {
        public ContentControl() : base() { }

        public static Property<object> ContentProperty = new Property<ContentControl, object>(c => c.Content);
        public static readonly Property<bool> HasContentProperty = new Property<ContentControl, bool>(c => c.HasContent);

        public object Content { get { return ContentProperty[this]; } set { ContentProperty[this] = value; } }
        public bool HasContent { get { return Content != null; } }
    }
}
